package com.hao.netty.listener;

import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;

/**
 * TODO
 *
 * @author 97472
 * @version 1.0
 * @date 2021/11/30 15:26
 */
public class ServerStartListener implements ChannelFutureListener {
    public void operationComplete(ChannelFuture channelFuture) throws Exception {
        if (channelFuture.isSuccess()){
            System.out.println("启动chatNettyServer成功。");
        }else {
            System.out.println("启动chatNettyServer失败。");
        }
    }
}
